<p>Photos : (cliquez sur les photos pour les agrandir)</p>
<!-- loop p -->
<img class="pictures-detail" src="{{baseurl}}global/img/appartements/pictures/thumbnails/{{p' value}}" alt="">
<!-- endloop -->

<script type="text/javascript">
$(".pictures-detail").click(function(){
	var pic = $(this).attr("src");
	pic = pic.replace("thumbnails/","");
	$("#max-pic").attr('src', pic);
	$("#maximize-ph").css("display", "block");
});	
</script>